package com.example.design.pattern.structure.bridge;

import com.example.design.pattern.structure.bridge.impl.Circle;
import com.example.design.pattern.structure.bridge.impl.DottedLineDrawAPI;
import com.example.design.pattern.structure.bridge.impl.Rectangle;
import com.example.design.pattern.structure.bridge.impl.RedDrawAPI;

public class BridgePatternDemo {

    public static void main(String[] args) {
        Shape redCircle = new Circle(new RedDrawAPI());
        Shape dottedLineCircle = new Circle(new DottedLineDrawAPI());
        Shape redRectangle = new Rectangle(new RedDrawAPI());
        Shape dottedLineRectangle = new Rectangle(new DottedLineDrawAPI());
        
        redCircle.draw();
        dottedLineCircle.draw();
        redRectangle.draw();
        dottedLineRectangle.draw();
    }
}
